<?php
class LabelModel extends Model
{
	public function addLabel($book_id, $user_id, $content) {
		$label['book_id'] = $book_id;
		$label['user_id'] = $user_id;
		$label['content'] = $content;
		$this->add($label);
	}
	
	public function getByBookId($book_id) {
		$condition['book_id'] = $book_id;
		return $this->where($condition)->select();
	}
}
?>